package com.suning.app.snpaasadmin.pojo;

import java.io.Serializable;

public class CfMysqlServiceBrokers implements Serializable {
    private Integer id;

    private String serviceBrokerGuid;

    private String serviceBrokerIp;

    private String userId;

    private String useState;

    private String memory;

    private String disk;

    private String productId;

    private String instanceId;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getServiceBrokerGuid() {
        return serviceBrokerGuid;
    }

    public void setServiceBrokerGuid(String serviceBrokerGuid) {
        this.serviceBrokerGuid = serviceBrokerGuid == null ? null : serviceBrokerGuid.trim();
    }

    public String getServiceBrokerIp() {
        return serviceBrokerIp;
    }

    public void setServiceBrokerIp(String serviceBrokerIp) {
        this.serviceBrokerIp = serviceBrokerIp == null ? null : serviceBrokerIp.trim();
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId == null ? null : userId.trim();
    }

    public String getUseState() {
        return useState;
    }

    public void setUseState(String useState) {
        this.useState = useState == null ? null : useState.trim();
    }

    public String getMemory() {
        return memory;
    }

    public void setMemory(String memory) {
        this.memory = memory == null ? null : memory.trim();
    }

    public String getDisk() {
        return disk;
    }

    public void setDisk(String disk) {
        this.disk = disk == null ? null : disk.trim();
    }

    public String getProductId() {
        return productId;
    }

    public void setProductId(String productId) {
        this.productId = productId == null ? null : productId.trim();
    }

    public String getInstanceId() {
        return instanceId;
    }

    public void setInstanceId(String instanceId) {
        this.instanceId = instanceId == null ? null : instanceId.trim();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        CfMysqlServiceBrokers other = (CfMysqlServiceBrokers) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getServiceBrokerGuid() == null ? other.getServiceBrokerGuid() == null : this.getServiceBrokerGuid().equals(other.getServiceBrokerGuid()))
            && (this.getServiceBrokerIp() == null ? other.getServiceBrokerIp() == null : this.getServiceBrokerIp().equals(other.getServiceBrokerIp()))
            && (this.getUserId() == null ? other.getUserId() == null : this.getUserId().equals(other.getUserId()))
            && (this.getUseState() == null ? other.getUseState() == null : this.getUseState().equals(other.getUseState()))
            && (this.getMemory() == null ? other.getMemory() == null : this.getMemory().equals(other.getMemory()))
            && (this.getDisk() == null ? other.getDisk() == null : this.getDisk().equals(other.getDisk()))
            && (this.getProductId() == null ? other.getProductId() == null : this.getProductId().equals(other.getProductId()))
            && (this.getInstanceId() == null ? other.getInstanceId() == null : this.getInstanceId().equals(other.getInstanceId()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getServiceBrokerGuid() == null) ? 0 : getServiceBrokerGuid().hashCode());
        result = prime * result + ((getServiceBrokerIp() == null) ? 0 : getServiceBrokerIp().hashCode());
        result = prime * result + ((getUserId() == null) ? 0 : getUserId().hashCode());
        result = prime * result + ((getUseState() == null) ? 0 : getUseState().hashCode());
        result = prime * result + ((getMemory() == null) ? 0 : getMemory().hashCode());
        result = prime * result + ((getDisk() == null) ? 0 : getDisk().hashCode());
        result = prime * result + ((getProductId() == null) ? 0 : getProductId().hashCode());
        result = prime * result + ((getInstanceId() == null) ? 0 : getInstanceId().hashCode());
        return result;
    }
}